import request from "../utils/request.js"
/* 获取公共参数 */
export const getConfigAPI = (data) => {
	return request({
		url: "/applets/common/getConfig",
		method: "get",
		data
	})
}
/* 注册 */
export const register = (data) => {
	return request({
		url: "/applets/login/register",
		method: "post",
		data
	})
}
/* 获取验证码 */
export const smsCode = (data) => {
	return request({
		url: "/applets/common/getSmsCode",
		method: "post",
		data
	})
}
/* 分享邀约 */
export const visitShareCount = (data) => {
	return request({
		url: "/applets/user/user/visitShareCount",
		method: "post",
		data
	})
}
/* 登录 */
export const loginAPI = (data) => {
	return request({
		url: "/applets/login/login",
		method: "post",
		data
	})
}
/* 忘记密码 */
export const forgetPwdAPI = (data) => {
	return request({
		url: "/applets/login/changePwd",
		method: "post",
		data
	})
}
/* 获取用户信息 */
export const getUserInfoAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserInfo",
		method: "post",
		data
	})
}
/* 编辑用户信息 */
export const emitUserInfoAPI = (data) => {
	return request({
		url: "/applets/user/user/editUserInfo",
		method: "post",
		data
	})
}
/* 获取用户站外联系方式 */
export const getUserOutSideAPI = (data) => {
	return request({
		url: "/applets/user/contact/getUserContact",
		method: "post",
		data
	})
}
/* 编辑用户站外联系方式 */
export const emitUserOutSideAPI = (data) => {
	return request({
		url: "/applets/user/contact/editUserContact",
		method: "post",
		data
	})
}
/* 修改用户站外联系方式展示状态 */
export const emitOutSideSwitchAPI = (data) => {
	return request({
		url: "/applets/user/contact/changeUserContactStatus",
		method: "post",
		data
	})
}
/* 用户反馈 */
export const feedBackAPI = (data) => {
	return request({
		url: "/applets/user/user/submitFeedback",
		method: "post",
		data
	})
}
/* 用户主页 */
export const userPageAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserHome",
		method: "post",
		data
	})
}
/* 关注or取关 */
export const followOrCloseAPI = (data) => {
	return request({
		url: "/applets/user/user/userAttention",
		method: "post",
		data
	})
}
/* 获取用户关注列表 */
export const followListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserAttention",
		method: "post",
		data
	})
}
/* 获取用户粉丝列表 */
export const fansListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserFollower",
		method: "post",
		data
	})
}
/* 获取用户邀约记录 */
export const getUserShareRecords = (data) => {
	return request({
		url: "/applets/user/user/getUserShareRecords",
		method: "post",
		data
	})
}
/* 获取任务奖励列表 */
export const taskListAPI = (data) => {
	return request({
		url: "/applets/user/task/getTaskList",
		method: "post",
		data
	})
}
/* 获取用户当前星光余额 */
export const moneyAmountAPI = () => {
	return request({
		url: "/applets/common/getUserMoneyAmount",
		method: "post",
	})
}
/* 获取用户收支明细 */
export const moneyRecordsListAPI = (data) => {
	return request({
		url: "/applets/user/account/getMoneyRecords",
		method: "post",
		data
	})
}
/* 获取充值模版 */
export const rechargeTemplateAPI = (data) => {
	return request({
		url: "/applets/user/account/getRechargeTemplate",
		method: "post",
		data
	})
}
/* 获取用户绑定账户 */
export const userAccountBindAPI = () => {
	return request({
		url: "/applets/user/account/getUserAccount",
		method: "post",
	})
}
/* 编辑用户绑定账户 */
export const editAccountBindAPI = (data) => {
	return request({
		url: "/applets/user/account/editUserAccount",
		method: "post",
		data
	})
}
/* 提现 */
export const applyWithdrawAPI = (data) => {
	return request({
		url: "/applets/user/account/userApplyWithdrawal",
		method: "post",
		data
	})
}
/* 获取用户认证状态 */
export const userAuthStatusAPI = () => {
	return request({
		url: "/applets/user/check/getUserCheckStatus",
		method: "post",
	})
}
/* 获取用户认证信息 */
export const userAuthInfoAPI = (data) => {
	return request({
		url: "/applets/user/check/getUserCheck",
		method: "post",
		data
	})
}
/* 编辑用户认证信息 */
export const editUserAuthInfoAPI = (data) => {
	return request({
		url: "/applets/user/check/editUserCheck",
		method: "post",
		data
	})
}
/* 用户打卡 */
export const userReceiveAPI = (data) => {
	return request({
		url: "/applets/user/task/userReceive",
		method: "post",
		data
	})
}
/* 用户充值 */
export const userRechargeAPI = (data) => {
	return request({
		url: "/applets/user/account/userRecharge",
		method: "post",
		data
	})
}
/* 分享二维码 */
export const shareQrCodeAPI = () => {
	return request({
		url: "/applets/user/user/getShareQrcode",
		method: "post",
	})
}
/* 获取省市列表 */
export const mapDataAPI = () => {
	return request({
		url: "/applets/common/getMapData",
		method: "post",
	})
}
/* 获取用户发布的活动列表 */
export const getUserActivityListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserActivityList",
		method: "post",
		data
	})
}
/* 获取用户发布找伴列表 */
export const getUserTaskListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserTaskList",
		method: "post",
		data
	})
}
/* 获取用户参加活动列表 */
export const getUserApplyListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserApplyActivityList",
		method: "post",
		data
	})
}
/* 获取用户收藏活动列表 */
export const getFavoriteActivityListAPI = (data) => {
	return request({
		url: "/applets/user/user/getFavoriteActivityList",
		method: "post",
		data
	})
}
/* 获取用户收藏任务列表 */
export const getFavoriteTasksListAPI = (data) => {
	return request({
		url: "/applets/user/user/getFavoriteTaskList",
		method: "post",
		data
	})
}
/* 刷新token */
export const refreshTokenAPI = () => {
	return request({
		url: "/applets/common/refreshToken",
		method: "post",
	})
}
/* 退出登录 */
export const logoutAPI = () => {
	return request({
		url: "/applets/login/logout",
		method: "post",
	})
}
/* 绑定用户openid */
export const bindOpenidAPI = (data) => {
	return request({
		url: "/applets/user/user/userBindOpenid",
		method: "post",
		data
	})
}
/* 用户申领任务 */
export const userClaimTaskAPI = (data) => {
	return request({
		url: "/applets/task/claim/UserClaimTask",
		method: "post",
		data
	})
}
/* 发布者同意/拒绝申领 */
export const handleClaimTaskAPI = (data) => {
	return request({
		url: "/applets/task/claim/HandleClaimTask",
		method: "post",
		data
	})
}
/* 获取用户申领的任务列表 */
export const userClaimTaskListAPI = (data) => {
	return request({
		url: "/applets/user/user/getUserClaimTaskList",
		method: "post",
		data
	})
}
/* 获取组局活动信息*/
export const editActivityInfoAPI = (data) => {
	return request({
		url: "/applets/activity/activity/editActivity",
		method: "get",
		data
	})
}
/* 编辑组局活动 */
export const editActivityAPI = (data) => {
	return request({
		url: "/applets/activity/activity/editActivity",
		method: "post",
		data
	})
}
/* 获取找伴任务信息 */
export const editTaskInfoAPI = (data) => {
	return request({
		url: "/applets/task/task/editTask",
		method: "get",
		data
	})
}
/* 编辑找伴任务 */
export const editTaskAPI = (data) => {
	return request({
		url: "/applets/task/task/editTask",
		method: "post",
		data
	})
}
/* 根据经纬度获取省市区id */
export const getCityIdAPI = (data) => {
	return request({
		url: "/applets/common/getCityId",
		method: "post",
		data
	})
}

/*删除任务-发布者id */
export const deleteTask = (data) => {
	return request({
		url: "/applets/task/task/deleteTask",
		method: "post",
		data
	})
}



